﻿using System.Text;
using System.Web;

namespace CY_MVC.HttpHandlers
{
	public abstract class CommandController : BaseController
	{
		public override void ProcessRequest(HttpContext p_Context)
		{
			Init(p_Context);

			Response.ContentType = "application/json;charset=UTF-8";
			Response.ContentEncoding = Encoding.UTF8;
			Response.Charset = "utf-8";
			
			Page_Load();

		    if (!HttpRuntime.UsingIntegratedPipeline) return;
		    //判断是否处于集成管道模式下，否则的话无法执行下列方法
		    Response.Headers.Remove("X-AspNet-Version");
		    Response.Headers.Remove("Server");
		    Response.Headers.Remove("ETag");
		}
	}
}
